home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / CONIO.H < prev    next >
C/C++ Source or Header  |  1993-11-23  |  2KB  |  74 lines

  1. /***
  2. *conio.h - console and port I/O declarations
  3. *
  4. *   Copyright (c) 1985-1992, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *   This include file contains the function declarations for
  8. *   the MS C V2.03 compatible console and port I/O routines.
  9. *
  10. ****/
  11.  
  12. #ifndef _INC_CONIO
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif 
  17.  
  18. #if (_MSC_VER <= 600)
  19. #define __cdecl     _cdecl
  20. #define __far       _far
  21. #endif 
  22.  
  23. /* function prototypes */
  24.  
  25. #ifndef _WINDOWS
  26. char * __cdecl _cgets(char *);
  27. int __cdecl _cprintf(const char *, ...);
  28. int __cdecl _cputs(const char *);
  29. int __cdecl _cscanf(const char *, ...);
  30. int __cdecl _getch(void);
  31. int __cdecl _getche(void);
  32. #endif 
  33. int __cdecl _inp(unsigned);
  34. unsigned __cdecl _inpw(unsigned);
  35. #ifndef _WINDOWS
  36. int __cdecl _kbhit(void);
  37. #endif 
  38. int __cdecl _outp(unsigned, int);
  39. unsigned __cdecl _outpw(unsigned, unsigned);
  40. #ifndef _WINDOWS
  41. int __cdecl _putch(int);
  42. int __cdecl _ungetch(int);
  43. #endif 
  44.  
  45. #ifndef __STDC__
  46. /* Non-ANSI names for compatibility */
  47. #ifndef _WINDOWS
  48. char * __cdecl cgets(char *);
  49. int __cdecl cprintf(const char *, ...);
  50. int __cdecl cputs(const char *);
  51. int __cdecl cscanf(const char *, ...);
  52. int __cdecl getch(void);
  53. int __cdecl getche(void);
  54. #endif 
  55. int __cdecl inp(unsigned);
  56. unsigned __cdecl inpw(unsigned);
  57. #ifndef _WINDOWS
  58. int __cdecl kbhit(void);
  59. #endif 
  60. int __cdecl outp(unsigned, int);
  61. unsigned __cdecl outpw(unsigned, unsigned);
  62. #ifndef _WINDOWS
  63. int __cdecl putch(int);
  64. int __cdecl ungetch(int);
  65. #endif 
  66. #endif 
  67.  
  68. #ifdef __cplusplus
  69. }
  70. #endif 
  71.  
  72. #define _INC_CONIO
  73. #endif 
  74.